<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Zend_View_Helper_GetAdminBar extends Zend_View_Helper_Abstract
{
    public function getAdminBar ($link_home, $link_gestione,$link_report, $link_persona)
    {
        $auth = Zend_Auth::getInstance();
        if ($auth->hasIdentity()) {
            $link_home2 = '<a href="'.$link_home.'">Home</a>';
            $link_gestione2 = '<a href="'.$link_gestione.'">Gestione</a>';
            $link_report2 = '<a href="'.$link_report.'">Report</a>';           
            return '<div class="admin-bar">'.
                    '<ul>'.
                        '<li>'.$link_home2.'</li>'.
                        '<li>'.$link_gestione2.'</li>'.
                        '<li>'.$link_report2.'</li>'.
                        $link_persona.                    
                    '</ul>'.
                   '</div>';
        }
        return '';

    }
}
?>
